/*
 * test_Matrix.cpp
 *
 *  Created on: 2010-06-19
 *      Author: Daniel
 */

#include "../../inc/Matrix.h"

#include <stdio.h>
#include <assert.h>

int main(void) {
	printf("Testing Matrix\n\n");
	
	int n=10, m=5;

	printf("Testing matrix constructor");
	Matrix mx(n,m);
	printf("\tOK\n");

	printf("Testing matrix default value");
	assert(mx.get(0,0) == 0);
	printf("\tOK\n");

	printf("Testing matrix getRowsNumber");
	assert(mx.getRowsNumber() == n);
	printf("\tOK\n");

	printf("Testing matrix getColumnsNumber");
	assert(mx.getColumnsNumber() == m);
	printf("\tOK\n");



	printf("Testing matrix set&get");
	mx.set(3,3,10);
	assert(mx.get(3,3) == 10);
	printf("\tOK\n");

	return 0;
}
